package com.lovo.web.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

@Getter
@Setter
@NoArgsConstructor
@ApiModel(value = "退货详情实体类",description = "退货详情实体类")
@TableName("refund")
public class RefundBean {
    /**退货详情主键*/
    @ApiModelProperty("退货详情主键")
    @TableId(value = "pk_refundId",type = IdType.AUTO)
    private long refundId;
    /**用户订单编号*/
    @ApiModelProperty("用户订单编号")
    @TableField("fk_userOrderIdNum")
    private String userOrderIdNum;
    /**退款原因*/
    @ApiModelProperty("退款原因")
    @TableField("r_cause")
    private String cause;
    /**审核状态 0是待审核、1是审核通过*/
    @ApiModelProperty("审核状态")
    @TableField("t_auditState")
    private int auditState=0;
    /**创建时间*/
    @ApiModelProperty("创建时间")
    @TableField("r_createDate")
    private LocalDate createDate=LocalDate.now();
    /**审核时间*/
    @ApiModelProperty("审核时间")
    @TableField("r_updateDate")
    private LocalDate updateDate;
    /**审核人*/
    @ApiModelProperty("审核人")
    @TableField("r_adminName")
    private String adminName;

    public RefundBean(String userOrderIdNum, String cause) {
        this.userOrderIdNum = userOrderIdNum;
        this.cause = cause;
    }
}
